package com.gxa.medical.exception;

/**
 * 自定义业务异常
 */
public class BusinessException extends Exception {
    private ExceptionCode exceptionCode;
    public ExceptionCode getExceptionCode(){
        return exceptionCode;
    }
    public BusinessException(ExceptionCode exceptionCode){
        super(exceptionCode.getMsg());
        this.exceptionCode=exceptionCode;
    }
}
